<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>索引页</title>
    <link rel="stylesheet" href="css/index.css">
    <link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.css">
</head>
<body style="background: url('images/cool.jpg') ;background-repeat:no-repeat ;background-size:100% 100% ;background-attachment: fixed ;">
<div id="index-box">
    <h1>电商EDG-NB管理系统</h1>

    <button id="index_login" >登 录</button><br/>
    <button id="index_register" >注 册</button>
</div>
</body>
<script>
    document.querySelector('#index_login').onclick=(e)=>{
        e.returnValue=false;
        location.href="login.html"
    }

    document.querySelector('#index_register').onclick=(e)=>{
        e.returnValue=false;
        location.href="register.html"
    }
</script>
</html>